package com.dgut.courses_selecting_sys.service;

import com.dgut.courses_selecting_sys.entity.Dept;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dgut.courses_selecting_sys.vo.TreeNode;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuec
 * @since 2020-08-06
 */
public interface IDeptService extends IService<Dept> {

    List<TreeNode> getDeptData();
    List<TreeNode> getDeptDataDetails();
    Dept getByDeptId(int deptId);
    boolean removeDeptById(int deptId);
    boolean updateDeptById(Dept dept);
    boolean saveDept(Dept dept);
    String getAncestorsFrom(Dept dept);

}
